package com.wnxy.producer.b_ps;

import com.wnxy.producer.a_simple.WorkProducer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class App {

    @Autowired
    private FanoutProducer fanoutProducer;

    private final String EXCHANGE_FANOUT = "exchange-fanout";

    @Test
    public void seat() {
        fanoutProducer.sendMsg(EXCHANGE_FANOUT,"","用户购票");
    }

}
